Do not manually create empty label
authorPaolo Borelli <pborelli@gnome.org>
Sun, 26 Jun 2011 19:32:45 +0000 (21:32 +0200)
committerPaolo Borelli <pborelli@gnome.org>
Mon, 15 Aug 2011 13:08:28 +0000 (15:08 +0200)
gtk_notebook_update_labels will take care of creating it if needed.

gtk/gtknotebook.c

index cd191756311452d25600afb9b4ed3b89dbe78752..9c7ece563ccc398255b6079766ef811a1bf4da93 100644 (file)
@@ -4528,8 +4528,6 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook,
   if (!tab_label)
     {
       page->default_tab = TRUE;
-      if (priv->show_tabs)
-        tab_label = gtk_label_new (NULL);
     }
   page->tab_label = tab_label;
   page->menu_label = menu_label;